package org.alan7yg.aop_sample.web;

import org.alan7yg.aop_sample.RestControllerAspect;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by alan on 8/29/16.
 */
@SpringBootApplication(scanBasePackages = "org.alan7yg")
@EnableAutoConfiguration
@Configuration
public class App {

    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }

    @Bean
    RestControllerAspect restControllerAspect() {
        return new RestControllerAspect();
    }

}
